package Test_1110;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 */

public class Test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList=new MyLinkedList();
        myLinkedList.addLast(2);
        myLinkedList.addLast(2);
        myLinkedList.addLast(3);
        myLinkedList.addLast(2);
        myLinkedList.addLast(4);
        myLinkedList.removeAllKey(2);
        myLinkedList.display();
        System.out.println();
        myLinkedList.clear();
        myLinkedList.display();
    }
    public static void main6(String[] args) {
        MyLinkedList myLinkedList=new MyLinkedList();
        myLinkedList.addLast(1);
        myLinkedList.addLast(2);
        myLinkedList.addLast(3);
        myLinkedList.addLast(4);
        myLinkedList.addindex(2,55);
        myLinkedList.display();
        System.out.println();
        myLinkedList.remove(2);
        myLinkedList.display();
        System.out.println();
        myLinkedList.remove(1);
        myLinkedList.display();
    }
    public static void main5(String[] args) {
        MyLinkedList myLinkedList=new MyLinkedList();
        myLinkedList.addLast(1);
        myLinkedList.addLast(2);
        myLinkedList.addLast(3);
        myLinkedList.addLast(4);
        myLinkedList.display();
    }
    public static void main4(String[] args) {
        MyLinkedList myLinkedList=new MyLinkedList();
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(3);
        myLinkedList.addFirst(4);
        myLinkedList.display();
    }
    public static void main3(String[] args) {
        Solution solution=new Solution();
        int[] nums1={1,2,3,0,0,0};
        int[] nums2={2,5,6};
        int m=nums1.length;
        int n=nums2.length;
        solution.merge(nums1,m,nums2,n);
    }
    public static void main2(String[] args) {
        Solution solution=new Solution();
        int[] nums={1,1};
        solution.removeDuplicates(nums);
    }
    public static void main1(String[] args) {
        Solution solution=new Solution();
        int[] nums={3,2,2,3};
        int val=3;
        int k = solution.removeElement(nums, val); // 调用你的实现
    }


}
